package com.wysql.ascost.mapper.auto;

import com.wysql.ascost.model.auto.Unit;
import com.wysql.ascost.model.auto.UnitExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 单位表 UnitMapper
 *
 * @author fuce_自动生成
 * @email ${email}
 * @date 2021-05-28 10:59:21
 */
@Mapper
public interface UnitMapper {

    long countByExample(UnitExample example);

    int deleteByExample(UnitExample example);

    int deleteByPrimaryKey(String id);

    int insert(Unit record);

    int insertSelective(Unit record);

    List<Unit> selectByExample(UnitExample example);

    Unit selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Unit record, @Param("example") UnitExample example);

    int updateByExample(@Param("record") Unit record, @Param("example") UnitExample example);

    int updateByPrimaryKeySelective(Unit record);

    int updateByPrimaryKey(Unit record);

    /**
     * 查询单位全部信息
     *
     * @param unit 单位表实体类
     * @return -
     */
    List<Unit> queryUnit(Unit unit);
}